model_dir="/models/.cache"
model_path="${model_dir}/hair_segmentation/hair_segmentation.tflite"

if [ -e "$model_path" ]; then
    echo "模型已存在";
    exit 0;
else
    mkdir -p $model_dir/hair_segmentation;
    wget -O $model_path https://storage.googleapis.com/mediapipe-assets/hair_segmentation.tflite
    echo "模型下载成功";
fi
